---
layout: default
---
{% assign post = page %}

<article>
	<div id="page-navigation">
		        <div style="float:left">
		        {% if page.previous.url %}
		                <a href="{{ site.url }}{{page.previous.url}}" 
		                	title="Previous Post:{{page.previous.title}}">☜
		                 {{page.previous.title}}
		                </a>
		        {% endif %}
		        </div>

		        <div style="float:right">
		        {% if page.next.url %}
		                <a href="{{ site.url }}{{page.next.url}}" 
		                	title="next Post:{{page.next.title}}">
		                {{page.next.title}} ☞ 
		                </a>
		        {% endif %}
		        </div>
		        <div style="clear:both"></div>
		</div> 
		
    <div id="post-content">
    		<center><h2>{{ page.title }}</h2></center>
			
        		{{ content }}

        	<div id="url"></div>
        	<!-- <br>字数：{{ page.content | number_of_words }} -->

        		{% include license.html %}

        	<script type="text/javascript">        	     
        	     document.getElementById("url").innerHTML = 
        	     "<p>本文会经常更新，请到原文："+window.location.href+
        	     ",避免陈旧错误知识的误导，同时有更好的阅读体验。</p>"        	     ;
        	</script>

        	<script src="https://s95.cnzz.com/z_stat.php?id=1261039464&web_id=1261039464" language="JavaScript"></script>

        {% if post.category %}
            {% for site_category in site.data.categories %}
                {% if site_category.slug == post.category %}
                    {% assign category = site_category %}
                {% endif %}
            {% endfor %}
            {% if category %}
                {% capture category_content %} in <span class="label" ><a href="/blog/category/{{ category.slug }}/">{{ category.name }}</a></span>{% endcapture %}
            {% endif %}
        {% else %}
            {% assign category_content = '' %}
        {% endif %}

        {% if post.tags.size > 0 %}
            {% capture tags_content %} with {% if post.tags.size == 1 %}<i class="fa fa-tag"></i>{% else %}<i class="fa fa-tags"></i>{% endif %}: {% endcapture %}
            {% for post_tag in post.tags %}
                {% for data_tag in site.data.tags %}
                    {% if data_tag.slug == post_tag %}
                        {% assign tag = data_tag %}
                    {% endif %}
                {% endfor %}
                {% if tag %}
                    {% capture tags_content_temp %}{{ tags_content }}<a href="/blog/tag/{{ tag.slug |strip_html  }}/">{{ tag.name }}</a>{% if forloop.last == false %}, {% endif %}{% endcapture %}
                    {% assign tags_content = tags_content_temp %}
                {% endif %}
            {% endfor %}
        {% else %}
            {% assign tags_content = '' %}
        {% endif %}

        
        <!--<p id="post-meta">{{ category_content }}{{ tags_content }}</p>-->
        
        <div id="page-navigation2">
		        <div class="clear">&nbsp;</div>
		        <div style="float:left">
		        {% if page.previous.url %}
		                <a href="{{ site.url }}{{page.previous.url}}" 
		                	title="Previous Post:{{page.previous.title}}">☜
		                 {{page.previous.title}}
		                </a>
		        {% endif %}
		        </div>

		        <div style="float:right">
		        {% if page.next.url %}
		                <a href="{{ site.url }}{{page.next.url}}" 
		                	title="next Post:{{page.next.title}}">
		                {{page.next.title}} ☞
		                </a>
		        {% endif %}
		        </div>

		        <div id="clear"  style="clear:both"><br/></div>		   
		         <div class="bdsharebuttonbox" style="float::bottom"><a href="#" class="bds_more" data-cmd="more">分享到：</a><a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间">QQ空间</a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博">新浪微博</a><a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博">腾讯微博</a><a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网">人人网</a><a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信">微信</a></div>
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{"bdSize":16}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>     
				<div class="comment">
				    <div id="disqus_thread"></div>
				</div>
		</div> 
    </div>
</article>

